<html>
<head><meta charset="utf-8"><title>out-of-tree crates - crates.io or git dependency · t-compiler/wg-meta · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/index.html">t-compiler/wg-meta</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html">out-of-tree crates - crates.io or git dependency</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="162318574"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162318574" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162318574">(Apr 02 2019 at 09:49)</a>:</h4>
<p>Hey, for the <a href="https://github.com/rust-lang/measureme" target="_blank" title="https://github.com/rust-lang/measureme">https://github.com/rust-lang/measureme</a> crate the question came up how to best depend on it in the compiler. Should publish to <a href="http://crates.io" target="_blank" title="http://crates.io">crates.io</a> or should have a git dependency? What are the upsides and downsides of each approach?</p>



<a name="162319527"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162319527" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162319527">(Apr 02 2019 at 10:02)</a>:</h4>
<p>Is there any existing precedent?</p>



<a name="162322671"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162322671" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162322671">(Apr 02 2019 at 10:52)</a>:</h4>
<p>rustc_hash is published on <a href="http://crates.io" target="_blank" title="http://crates.io">crates.io</a></p>



<a name="162322765"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162322765" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162322765">(Apr 02 2019 at 10:53)</a>:</h4>
<p>one advantage of a git dependency (probably) is that it's easier to modify for local experimentation</p>



<a name="162322793"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162322793" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162322793">(Apr 02 2019 at 10:54)</a>:</h4>
<p>i.e. it's simple to switch just part of the URL instead of having to look it up first</p>



<a name="162322876"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162322876" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162322876">(Apr 02 2019 at 10:54)</a>:</h4>
<p>although one probably more frequently has to change the dependency to a local one, which is just as "hard" with a git dependency</p>



<a name="162848254"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162848254" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162848254">(Apr 08 2019 at 19:40)</a>:</h4>
<p>I've generally gone with <a href="http://crates.io" target="_blank" title="http://crates.io">crates.io</a> dependency</p>



<a name="162848265"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162848265" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162848265">(Apr 08 2019 at 19:40)</a>:</h4>
<p>But tbh I didn't think very hard about that decision</p>



<a name="162848277"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185694-t-compiler/wg-meta/topic/out-of-tree%20crates%20-%20crates.io%20or%20git%20dependency/near/162848277" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/185694-t-compiler/wg-meta/topic/out-of-tree.20crates.20-.20crates.2Eio.20or.20git.20dependency.html#162848277">(Apr 08 2019 at 19:40)</a>:</h4>
<p>It just seemed to be good to get ourselves in the practice of doing publishing, thinking about semver, etc</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>